function lookfile(id){
	$.ajax({
		"url" :Server + "/app/ins/selectFile",
		"type" : "POST",
		"dataType" : "Json",
		"data" : {
			id : id
		},
	success : function(data){
		var m = data
		var Time =( m.createTime).substring(0,( m.createTime).indexOf(' '));
		var Type =""//0：产品说明1：认证认可2：检测方式3：相关标准4：操作手册5：设备操作规程
		switch(m.knowType){
		case 0:
		 	 Type = "产品说明";
		 	 break;
		case 1:
			Type ="认证认可";
			break;
		case 2:
			Type ="检测方式";
			break;
		case 3:
			Type = "相关标准";
			break;
		case 4:
			Type = "操作手册";
			break;
		case 5:
			Type = "设备操作规程";
			break;
		} 
		var filename = m.knowFile;
		var filetype =  filename.substr(filename.lastIndexOf("."), filename.length);
		//alert(m.fileSize);
		$("#ik_name").html(m.knowName)
		$("#headName").html(m.knowName)
		$("#pub_name").html(m.realname)
		$("#content").html(m.knowDesc)
		$("#size").html(m.fileSize)
		$("#time").html(Time)
		$("#type").html(Type)
		$("#style").html(filetype)
		$("#rout").attr("href",m.knowFile)
		$("#downCount").val(m.downCount+1)
		//alert(m.downCount+1)
		$("#id").val(m.id)
	}
	})
}

function download(){ 
			$.ajax({
			    url:Server + "/app/ins/updateCount",
				//url : Server +"/res/need/updatestatus",
				type : "POST",
				data:$('#signupForm').serialize(),
				success : function(data){
					console.log("+1");
				},
				error : function(msg){
					console.log("error");
				}
			});		
}
